package com.atguigu.springcloud.handler;

import com.atguigu.springcloud.service.PaymentFeignService;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty;
import org.springframework.stereotype.Service;

@Service
public class PaymentFeignServiceHandler implements PaymentFeignService {
    @Override
    public String paymentInfo_OK(Integer id) {
        return Thread.currentThread().getName() + "，PaymentFeignServiceHandler, ok fallback";
    }

    @Override
    public String paymentInfo_TimeOut(Integer id) {
        return "线程池：" + Thread.currentThread().getName() + ",PaymentFeignServiceHandler,  paymentInfo_TimeOutHandler, 80超时或报错";
    }
}
